Paul Pogonyshev <pogonyshev at gmx.net>
authorGlenn Morris <rgm@gnu.org>
Wed, 22 Aug 2007 04:05:21 +0000 (04:05 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 22 Aug 2007 04:05:21 +0000 (04:05 +0000)
(image-type-header-regexps): Add svg entry.

lisp/image.el

index 6763cf151feea4f55a8661479edbdac2e621058e..d63c69cafed94c9ab4e152d2dc4c538211aae521 100644 (file)
@@ -43,7 +43,8 @@
 static char \\1_bits" . xbm)
     ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
     ("\\`[\t\n\r ]*%!PS" . postscript)
-    ("\\`\xff\xd8" . (image-jpeg-p . jpeg)))
+    ("\\`\xff\xd8" . (image-jpeg-p . jpeg))
+    ("\\`<\\?xml " . svg))
   "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.
 When the first bytes of an image file match REGEXP, it is assumed to
 be of image type IMAGE-TYPE if IMAGE-TYPE is a symbol.  If not a symbol,